import requests
from requests_toolbelt.multipart.encoder import MultipartEncoder

data = MultipartEncoder(
    fields={
        'serial': '1',
        'fileCount': '2',
        '_0': ('first/second/aaa.txt', open("C:/Users/jia/Desktop/a.txt", 'rb'), 'application/octet-stream'),
        '_1': ('first/second/bbb.txt', open("C:/Users/jia/Desktop/b.txt", "rb"), "application/octet-stream")
    }
)

url = 
headers = {'Content-Type': data.content_type}

res = requests.post(url, data=data, headers=headers)
print(res.json())

